﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace TravelAgency.AspNet
{
    public partial class SiteMaster : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                //this.ViewState["refUrl"] = this.Request.UrlReferrer.ToString();
            }
        }

        private string GetBackUrl()
        {
            if (this.ViewState["refUrl"] != null)
            {
                return this.ViewState["refUrl"].ToString();
            }
            else
            {
                return Request.ServerVariables["URL"];
            }
        }
    }
}
